<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="com.al.el.User,  java.util.*" %>
<!DOCTYPE html>
<html>
	<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
	</head>
	<body>
		<table>
			<tr>
				<th>编号</th>
				<th>姓名</th>
				<th>成绩</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${map }" var="user">
				<tr>
						<%--我发现这里不能指定作用域 --%>
						<td>${user.id }</td>
						<td>${user.name }</td>
						<td>${user.score }</td>
						<td>
							<a href="/myjsp003/user?method=delete&id=${user.id }">删除</a>
							<a href="/myjsp003/user?method=getById&id=${user.id }">修改</a>
						</td>
					</tr>
			</c:forEach>
			<tr>
				<td>
					<a href="add.jsp">添加</a>
				</td>
			</tr>
		</table>
	</body>
</html>